package com.lucky.common.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "EmailFeign", url = "http://out.lucky.com/lucky_mail")
public interface EmailFeign {
    
    /**
     * 发送邮件
     * @param mailTo  发到到?
     * @param subject 标题
     * @param mailContent 邮件内容
     * @return
     */
    @PostMapping("/sendMail")
    public String sendMail(@RequestParam("mailTo")String mailTo, @RequestParam("subject")String subject, @RequestParam("mailContent")String mailContent) ;
    

}
